﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Options;
namespace OptionsConfigurationSample.Controllers
{
    public class HomeController : Controller
    {
        private readonly IOptions<Class> _optionsAccessor;
        public HomeController(IOptions<Class> optionsAccessor)
        {
            this._optionsAccessor = optionsAccessor;
        }
        public IActionResult Index()
        {
            return View(this._optionsAccessor.Value);
        }
    }
}